package vip.zhenzicheng.design_patterns.command;

import java.util.HashMap;
import java.util.Map;

/**
 * 订单类
 *
 * @author zhenzicheng
 * @date 2022-05-26 18:40
 */
public class Order {
  //所下的餐品及份数
  private final Map<String, Integer> foodDir = new HashMap<>();
  //餐桌号码
  private int diningTable;

  public int getDiningTable() {
    return diningTable;
  }

  public void setDiningTable(int diningTable) {
    this.diningTable = diningTable;
  }

  public Map<String, Integer> getFoodDir() {
    return foodDir;
  }

  public void setFood(String name, int num) {
    foodDir.put(name, num);
  }
}
